<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>AsmInline.pb</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<pre><font face="Courier New, Courier, mono"size="2"><font color="#006666">;
</font><font color="#006666">; ------------------------------------------------------------
</font><font color="#006666">;
</font><font color="#006666">;   PureBasic - Inlined asm example file
</font><font color="#006666">;
</font><font color="#006666">;    (c) Fantaisie Software
</font><font color="#006666">;
</font><font color="#006666">; ------------------------------------------------------------
</font><font color="#006666">;
</font>
<b><font color="#006666">CompilerIf</font></b> <font color="#924B72">#PB_Compiler_Processor</font> &lt;&gt; <font color="#924B72">#PB_Processor_x86</font> <b><font color="#006666">And</font></b> <font color="#924B72">#PB_Compiler_Processor</font> &lt;&gt; <font color="#924B72">#PB_Processor_x64</font>
  <b><font color="#006666">CompilerError</font></b> "This example only works on x86 or x64 processors"
<b><font color="#006666">CompilerEndIf</font></b>

Value.l = 10  <font color="#006666">; Declare our own variable
</font>
<b><font color="#006666">EnableASM</font></b>
  MOV Value, 20 <font color="#006666">; Directly use the ASM keywords with PureBasic variable !
</font>  INC Value
<b><font color="#006666">DisableASM</font></b>

<font color="#006666">MessageRequester</font>("ASM Example", "Should be 21: " + Value)
</font></pre>
</body></html>
